package com.css.fxfzcpxx.base.attachment.repository;

import com.css.fxfzcpxx.base.attachment.entity.AttachmentInfoEntity;

import java.util.List;

public interface AttachmentInfoRepository {
    /**
     *  保存附件进附件表
     */
    int save(AttachmentInfoEntity attachmentInfoEntity);

    /**
     *  根据id和文件名获取保存在磁盘上的真实的文件名
     */
    AttachmentInfoEntity getAttach(String attachId);

    boolean deleteFile(String attachId);

    AttachmentInfoEntity queryFile(String fileId);

    public List<AttachmentInfoEntity> findInIdList(List<String> idList);

    List<AttachmentInfoEntity> getCertificateFile(String certificateSign);
}
